\hypertarget{classiec61883_reader}{
\section{iec61883Reader Class Reference}
\label{classiec61883_reader}\index{iec61883Reader@{iec61883Reader}}
}
Inheritance diagram for iec61883Reader::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classiec61883_reader}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classiec61883_reader_aea0949a21da75bee3e0b1ec7d8aff905}{iec61883Reader} (int port=0, int \hyperlink{class_i_e_e_e1394_reader_ad7c6d06f144c68a17e2c09465dd4af80}{channel}=63, int buffers=50, BusResetHandler=0, BusResetHandlerData=0, bool hdv=false)
\item 
bool \hyperlink{classiec61883_reader_aa30263079fb1b799b8ca157a5e6c48f8}{Open} (void)
\item 
void \hyperlink{classiec61883_reader_aafd28f5d06f1e452621a8afcec331567}{Close} (void)
\item 
\hypertarget{classiec61883_reader_a8ff3fce71c63e3c3794e6eb1bb824f59}{
bool {\bfseries StartReceive} (void)}
\label{classiec61883_reader_a8ff3fce71c63e3c3794e6eb1bb824f59}

\item 
\hypertarget{classiec61883_reader_a8e49a807752a3badf2693f1c8216d728}{
void {\bfseries StopReceive} (void)}
\label{classiec61883_reader_a8e49a807752a3badf2693f1c8216d728}

\item 
bool \hyperlink{classiec61883_reader_a2513e407abcb2a212dbf67a4e776a933}{StartThread} (void)
\item 
void \hyperlink{classiec61883_reader_af503748aec3efec5e9dd09a1b9cd8df3}{StopThread} (void)
\item 
\hypertarget{classiec61883_reader_a29e1472eb3f0273c500780e9eb8e85c1}{
int {\bfseries Handler} (unsigned char $\ast$data, int length, int dropped)}
\label{classiec61883_reader_a29e1472eb3f0273c500780e9eb8e85c1}

\item 
\hypertarget{classiec61883_reader_a0a6a1de6969571b357e9ce6bf5c321af}{
void $\ast$ {\bfseries Thread} ()}
\label{classiec61883_reader_a0a6a1de6969571b357e9ce6bf5c321af}

\item 
\hypertarget{classiec61883_reader_ac0f9ac2d13e5c57a2891ef719784bbc7}{
void {\bfseries ResetHandler} (void)}
\label{classiec61883_reader_ac0f9ac2d13e5c57a2891ef719784bbc7}

\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{classiec61883_reader_aea0949a21da75bee3e0b1ec7d8aff905}{
\index{iec61883Reader@{iec61883Reader}!iec61883Reader@{iec61883Reader}}
\index{iec61883Reader@{iec61883Reader}!iec61883Reader@{iec61883Reader}}
\subsubsection[{iec61883Reader}]{\setlength{\rightskip}{0pt plus 5cm}iec61883Reader::iec61883Reader (int {\em p} = {\ttfamily 0}, \/  int {\em c} = {\ttfamily 63}, \/  int {\em bufSize} = {\ttfamily 50}, \/  BusResetHandler {\em resetHandler} = {\ttfamily 0}, \/  BusResetHandlerData {\em data} = {\ttfamily 0}, \/  bool {\em hdv} = {\ttfamily false})}}
\label{classiec61883_reader_aea0949a21da75bee3e0b1ec7d8aff905}
Initializes the raw1394Reader object.

The object is initialized with port and channel number. These parameters define the interface card and the iso channel on which the camcorder sends its data.


\begin{DoxyParams}{Parameters}
\item[{\em p}]the number of the interface card to use \item[{\em c}]the iso channel number to use \item[{\em bufSize}]the number of frames to allocate for the frames buffer \end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classiec61883_reader_aafd28f5d06f1e452621a8afcec331567}{
\index{iec61883Reader@{iec61883Reader}!Close@{Close}}
\index{Close@{Close}!iec61883Reader@{iec61883Reader}}
\subsubsection[{Close}]{\setlength{\rightskip}{0pt plus 5cm}void iec61883Reader::Close (void)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classiec61883_reader_aafd28f5d06f1e452621a8afcec331567}
Close the raw1394 interface 

Implements \hyperlink{class_i_e_e_e1394_reader}{IEEE1394Reader}.\hypertarget{classiec61883_reader_aa30263079fb1b799b8ca157a5e6c48f8}{
\index{iec61883Reader@{iec61883Reader}!Open@{Open}}
\index{Open@{Open}!iec61883Reader@{iec61883Reader}}
\subsubsection[{Open}]{\setlength{\rightskip}{0pt plus 5cm}bool iec61883Reader::Open (void)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classiec61883_reader_aa30263079fb1b799b8ca157a5e6c48f8}
Open the raw1394 interface

\begin{DoxyReturn}{Returns}
success/failure 
\end{DoxyReturn}


Implements \hyperlink{class_i_e_e_e1394_reader}{IEEE1394Reader}.\hypertarget{classiec61883_reader_a2513e407abcb2a212dbf67a4e776a933}{
\index{iec61883Reader@{iec61883Reader}!StartThread@{StartThread}}
\index{StartThread@{StartThread}!iec61883Reader@{iec61883Reader}}
\subsubsection[{StartThread}]{\setlength{\rightskip}{0pt plus 5cm}bool iec61883Reader::StartThread (void)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classiec61883_reader_a2513e407abcb2a212dbf67a4e776a933}
Start receiving DV frames

The ieee1394 subsystem is initialized with the parameters provided to the constructor (port and channel). The received frames can be retrieved from the outFrames queue. 

Implements \hyperlink{class_i_e_e_e1394_reader}{IEEE1394Reader}.\hypertarget{classiec61883_reader_af503748aec3efec5e9dd09a1b9cd8df3}{
\index{iec61883Reader@{iec61883Reader}!StopThread@{StopThread}}
\index{StopThread@{StopThread}!iec61883Reader@{iec61883Reader}}
\subsubsection[{StopThread}]{\setlength{\rightskip}{0pt plus 5cm}void iec61883Reader::StopThread (void)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classiec61883_reader_af503748aec3efec5e9dd09a1b9cd8df3}
Stop the receiver thread.

The receiver thread is being canceled. It will finish the next time it calls the pthread\_\-testcancel() function. After it is canceled, we turn off iso receive and close the ieee1394 subsystem. We also remove all frames in the outFrames queue that have not been processed until now. 

Implements \hyperlink{class_i_e_e_e1394_reader}{IEEE1394Reader}.

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/cv/ext/dvgrab/ieee1394io.h\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/cv/ext/dvgrab/ieee1394io.cc\end{DoxyCompactItemize}
